Tidyverse
Data cleaning and wrangling in R
Today, we’ll finally leave base R behind and make our lives much
easier by introducing you to the tidyverse. ✨ We think for
data cleaning, wrangling, and plotting, the tidyverse
really is a no-brainer. A few good reasons for teaching the
tidyverse are:
- Outstanding documentation and community support
- Consistent philosophy and syntax
- Convenient “front-end” for more advanced methods
Read more on this here if you like.
But… this certainly shouldn’t put you off learning base R alternatives.
- Base R is extremely flexible and powerful (and stable).
- There are some things that you’ll have to venture outside of the tidyverse for.
- A combination of tidyverse and base R is often the best solution to a problem.
- Excellent base R data manipulation tutorial here.
Review git and Github 🏄
Last week we discussed how git and Github can be used to optimize, record and reproduce your workflow. With the upcoming submission, we thought we might go through some of the most important steps together again.
Cloning a repo to your local machine
The easiest way (in our opinion) to do this involves the use of Github Desktop. Though, feel free to play around with either the command line or integrate you git workflow into RStudio, we will accept whichever works best for you.
Whatever way you plan on cloning a repo (e.g. the assignment), you first need to copy the URL identifying it. Luckily there is a green button “Code” that allows you to do just that. Copy the HTTPS link for now. It will look something like this https://github.com/username/assignment-X-username.git.
Here is a short gif on how to clone a repo with GitHub Desktop: